from fastapi import APIRouter

from app.api.deps import DbDependency
from app.crud import banner_service
from app.utils.response import success_response

router = APIRouter()


@router.get("/bannerList", summary="查询轮播图")
async def banner_list(db: DbDependency):
    banners = banner_service.banner_list(db)
    return success_response(data=banners)
